package lntu.r212.gc;

import java.util.Scanner;

public class StudentTest {
    public static void main(String[] args) {
        Student stu1 = new Student();
        Scanner sc = new Scanner(System.in);
        System.out.println("请输入姓名：");
        stu1.setName(sc.next());
        System.out.println("请输入年龄：");
        stu1.setAge(sc.nextInt());
        sc.close();
        System.out.println("我的名字是："+stu1.getName()+","+"我的年龄是："+stu1.getAge());
    }
}
